// 引入请求js
import config from '@/utils/http/http.js';
// 登录接口统一管理
const $http = {
	//比如说是 login 登录接口,
	getcode: function(params, methods) {
		return config.httpRequest({
			url: 'Common/GetCode',
			params,
			methods
		})
	},

	register: function(data, methods) {
		return config.httpRequest({
			url: 'user/register',
			data,
			methods
		})
	},
	
	login: function(data, methods) {
		return config.httpRequest({
			url: 'user/login',
			data,
			methods
		})
	},
}
export default $http;
